<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <!--th:each遍历数据-->
    <!--        hotel名字为自定义的，${为controller中map.put放的键名}-->
    <div th:each="hotel : ${hotelList}" style="float: left">
        <h1 th:text="${hotel.name}"></h1>
        <img th:src="${hotel.img}">
        <!--<a th:href="@{/hc/findById(id=${hotel.id})}">-->
        <a th:href="@{/hc/findByMany(id=${hotel.id})}">
            <p th:text="${hotel.content}"></p>
        </a>
    </div>
</div>
</body>
</html>